package de.karlNet.sambamanager.ldapModel.dns;

import de.karlNet.sambamanager.ldapModel.ITypeCheckerCallback;
import de.karlNet.sambamanager.ldapModel.LdapObject;

public class LdapDNSARecord extends LdapObject {
	private String ipAddress;
	public void setIpAddress(String ipAddress) {
		this.ipAddress = ipAddress;
	}

	public void setTtl(int ttl) {
		this.ttl = ttl;
	}

	private int ttl;

	public int getTtl() {
		return ttl;
	}

	public String getIpAddress() {
		return ipAddress;
	}

	public LdapDNSARecord(String dc, String dn, String ipAddress, int ttl) {
		super(dc, dn);
		this.ipAddress = ipAddress;
		this.ttl = ttl;
	}

	public LdapDNSARecord() {
	}

	@Override
	public void isType(ITypeCheckerCallback typeCheckerCallback) {
		typeCheckerCallback.isLdapDNSARecord();
		typeCheckerCallback.isLdapDNSARecord(this);
	}
}
